#include "port.h"

/** 
 * @brief ms delay function
 * @file delay.c 
 * @name 
 * @param[in] int ms ### delay time uint ms
 * @return void 
 * @note 
 * @date 2024-03-28 22:39:56 
 * @version V1.0.0 
*/
void delay_ms(unsigned int ms)
{
    //ms *1000 /10 == ms * 100
    unsigned int temp = ms * 100;
    while(temp--);
}

/** 
 * @brief us delay function
 * @file delay.c 
 * @name 
 * @param[in] int us ### delay time uint us
 * @return void 
 * @note 
 * @date 2024-03-28 22:39:56 
 * @version V1.0.0 
*/
void delay_us(unsigned int us)
{
    unsigned int temp = us / 10;
    //While looping once for 10us
    while(temp--);
}